package com.blrs.service.project.deliverable.impl;

import java.util.List;

import com.blrs.domain.ProjectDeliverable;
import com.blrs.mapper.ProjectDeliverableMapper;
import com.blrs.service.project.deliverable.IProjectDeliverableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 项目交付物Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-14
 */
@Service
public class ProjectDeliverableServiceImpl implements IProjectDeliverableService
{
    @Autowired
    private ProjectDeliverableMapper projectDeliverableMapper;


    /**
     * 查询项目交付物列表
     * 
     * @param projectDeliverable 项目交付物
     * @return 项目交付物
     */
    @Override
    public List<ProjectDeliverable> selectProjectDeliverableList(ProjectDeliverable projectDeliverable)
    {
        return projectDeliverableMapper.selectProjectDeliverableList(projectDeliverable);
    }


    /**
     * 修改项目交付物
     *
     * @param projectDeliverable 项目交付物
     * @return 结果
     */
    @Override
    public int updateProjectDeliverable(ProjectDeliverable projectDeliverable)
    {
        return projectDeliverableMapper.updateProjectDeliverable(projectDeliverable);
    }

    /**
     * 新增项目交付物
     * 
     * @param projectDeliverable 项目交付物
     * @return 结果
     */
    @Override
    public int insertProjectDeliverable(ProjectDeliverable projectDeliverable)
    {
        return projectDeliverableMapper.insertProjectDeliverable(projectDeliverable);
    }


    /**
     * 删除项目交付物信息
     * 
     * @param deliverableId 项目交付物主键
     * @return 结果
     */
    @Override
    public int deleteProjectDeliverableByDeliverableId(String deliverableId)
    {
        return projectDeliverableMapper.deleteProjectDeliverableByDeliverableId(deliverableId);
    }
}
